How to find mean proportional of two numbers